Skip to content

Conversation

@suyeun84
Copy link
Contributor

🧷 문제 링크

https://www.acmicpc.net/problem/2470

🧭 풀이 시간

20분

👀 체감 난이도

✏️ 문제 설명

주어진 용액들 N개 중 두 개의 서로 다른 용액을 혼합하여 특성값이 0에 가장 가까운 용액 만들기

🔍 풀이 방법

오름차순으로 정렬해주고,
투포인터 써서 합이 0보다 작으면 왼쪽 인덱스 하나 증가 시키고,
합이 0보다 크면 오른쪽 인덱스 하나 감소 시킴

⏳ 회고

전형적인 투포인터다.

@suyeun84 suyeun84 self-assigned this Jul 13, 2025
@suyeun84 suyeun84 added the success 👍 해설을 보지 않고 풀었을 때 label Jul 13, 2025
@ShinHeeEul ShinHeeEul merged commit 9cd3802 into main Jul 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

success 👍 해설을 보지 않고 풀었을 때

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants